package com.smalls.newvideotwo.util;

import android.util.Log;

import com.smalls.newvideotwo.BuildConfig;

public class LogUtil {
    public static int DEBUG = 4;
    public static int ERROR = 1;
    public static int INFO = 3;
    public static int LOG_LEVEL = 6;
    public static int VERBOSE = 5;
    public static int WARN = 2;

    public static void v(String tag, String msg) {
        if (LOG_LEVEL > VERBOSE && BuildConfig.isDebug.booleanValue()) {
            Log.v(tag, msg);
        }
    }

    public static void d(String tag, String msg) {
        if (LOG_LEVEL > DEBUG && BuildConfig.isDebug.booleanValue()) {
            Log.d(tag, msg);
        }
    }

    public static void i(String tag, String msg) {
        if (LOG_LEVEL > INFO && BuildConfig.isDebug.booleanValue()) {
            Log.i(tag, msg);
        }
    }

    public static void w(String tag, String msg) {
        if (LOG_LEVEL > WARN && BuildConfig.isDebug.booleanValue()) {
            Log.w(tag, msg);
        }
    }

    public static void e(String tag, String msg) {
        if (LOG_LEVEL > ERROR && BuildConfig.isDebug.booleanValue()) {
            Log.e(tag, msg);
        }
    }
}
